package com.workManager.exception;


import com.workManager.config.RespCode;

/**
 * 
* @ClassName: LoginException 
* @Description: 登陆异常
* @author xucan
* @date 2016年11月4日 上午11:53:55 
*
 */
@SuppressWarnings("serial")
public class LoginException extends BaseException {
	public LoginException() {
	}
	
	public LoginException(RespCode respCode, String message) {
		super(RespCode.defineRespCode(respCode, message));
		respCode.setMsg(message);
	}

	public LoginException(String message) {
		this(RespCode.defineRespCode(message));
	}

	public LoginException(String message, Exception e) {
		super(message, e);
	}
	
	public LoginException(RespCode respCode, Exception e) {
		super(respCode, e);
	}
	
	public LoginException(RespCode respCode) {
		super(respCode);
	}

	protected RespCode getRespCode() {
		return RespCode.LOGIN_FAIL;
	}
}
